package com.huopaolan.yohuoshop.Mvp.Contract;

import com.huopaolan.lib_core.Mvp.Model.IModel;
import com.huopaolan.lib_core.Mvp.View.IView;
import com.huopaolan.yohuoshop.Bean.ShowEntity;
import com.huopaolan.yohuoshop.Bean.StrollCommunityEntity;
import com.huopaolan.yohuoshop.Bean.CommunityEntity;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;

public interface CommunityFragmentContract {
    //逛接口
    interface CommunityIView extends IView {
        void CommunitySuccess(Map<String, List> map);
    }

    interface CommunityIModel extends IModel {
        Observable<CommunityEntity> community_request(String request);
    }

    //社区接口
    interface CommunityWriteIView extends IView {
        void CommunityWriteSuccess(StrollCommunityEntity entity);
    }

    interface CommunityWriteIModel extends IModel {
        Observable<StrollCommunityEntity> community_write_request(String request);
    }

    //show接口
    interface CommunityShowIView extends IView {
        void CommunityShowSuccess(Map<String, List> entity);
    }

    interface CommunityShowIModel extends IModel {
        Observable<ShowEntity> community_show_request(String request);
    }
}
